package com.privacy.accountmgr

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.privacy.accountmgr.utils.PreferenceHelper


class HiddenSplashActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_hidden_splash)
        try {
            if (!PreferenceHelper.getBoolean(this, PreferenceHelper.IS_AGREED_TERMS, false)) {
                startActivity(Intent(this, SplashActivity::class.java))
                finish()
            } else {
                startActivity(Intent(this, LockActivity::class.java))
                finish()
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}
